﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link rel="shortcut icon" type="image/ico" href="/Fap.app.web/favicon.ico" />
  <title>$model.LocalNode.Nickname$'s Web share</title>
  <style type="text/css" charset=utf-8"  title="currentStyle">
/*<![CDATA[*/
                        @import "/Fap.app.web/css/fap.css";            
                        
  /*]]>*/
  </style>
  <script type="text/javascript" charset=utf-8" language="javascript" src="/Fap.app.web/js/jquery-1.5.2.min.js">
</script>
  <script type="text/javascript" charset=utf-8"  language="javascript" src="/Fap.app.web/js/jquery.dataTables.min.js">
</script>
  <script type="text/javascript" charset="utf-8">
//<![CDATA[
      \$(document).ready(function () {
          \$('#files').dataTable({
              "bPaginate": false,
              "aaSorting": [],
              "oLanguage": {
                  "sZeroRecords": "No files or folders found!"
              },
              "aoColumns": [
                            { "sWidth": "1px", "iDataSort": 6 },
                              null,
                             { "sWidth": "80px", "iDataSort": 4 },
                             { "sWidth": "80px", "iDataSort": 5 },
                             null,
                             null,
                             null
                           ]
          });
      })
  //]]>
  </script>
</head>

<body id="body">
  <div id="container">
    <div class="full_width big">
      <h1>$model.LocalNode.Nickname$'s Shares</h1>
    </div>

    <p><span class="$slotcolour$">$currentuploadslots$ of $uploadslots$ upload slots availible</span>.$queueInfo$  Files under $freelimit$ are not queued.</p>

    <p><i>Please note that if the server runs out of upload slots then your download will stall untill a free slot is availible.</i></p>

    <h2>Current Path:</h2>

    <div>
      <a href="/">Root</a>
      $pathSplit:{split|
         <span class="PathSplitter">/</span>
         <a href="$split.Path$">$split.Name$</a>
       }$
    </div>

    <div id="demo">
      <table cellpadding="0" cellspacing="0" border="0" class="display" id="files">
        <thead>
          <tr>
            <th>Icon</th>
            <th>Name</th>
            <th>Modified</th>
            <th>Size</th>
          </tr>
        </thead>
        <tbody>
         $files:{file|
          <tr class="even">
            <td><img height="16px" width="16px" src="/Fap.app.web/icon/$file.Icon$" alt="icon" /><a  title="Download via FAP" href="fap://$model.LocalNode.ID$$path$$file.Path$"><img alt="FAP Download" src="/Fap.app.web/images/fap.png" class="fapDownload" /></a></td>
            <td><a href="$path$$file.Path$">$file.Name$</a></td>
            <td>$file.LastModifiedtxt$</td>
            <td class="center">$file.Sizetxt$</td>
            <td class="hidden">$file.LastModified$</td>
            <td class="hidden">$file.Size$</td>
            <td class="hidden">$file.Icon$</td>
          </tr>
         }$
        </tbody>
        <tfoot>
          <tr>
            <th>Icon</th>
            <th>Name</th>
            <th>Modified</th>
            <th>Size</th>
          </tr>
        </tfoot>
      </table>
      <div style="text-align:center">
        Total Size: $totalSize$
      </div>
      <div class="spacer"></div>
      <div style="text-align:center">
        Page generated by $appver$
      </div>
    </div>
</body>
</html>
